From 1df7998ba63eb54da9b94a9b84aae0c6b3b20c4a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 4 Sep 2008 11:55:48 +0100 Subject: [PATCH] xsm: Fix __import__() usage on Python 2.4 and earlier. Signed-off-by: Keir Fraser --- tools/python/xen/util/xsm/xsm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/util/xsm/xsm.py b/tools/python/xen/util/xsm/xsm.py index e2639c0d66..1c093c627f 100644 --- a/tools/python/xen/util/xsm/xsm.py +++ b/tools/python/xen/util/xsm/xsm.py @@ -7,10 +7,11 @@ from xsm_core import xsm_init xoptions = XendOptions.instance() xsm_module_name = xoptions.get_xsm_module_name() -xsconstants.XS_POLICY_USE = eval("xsconstants.XS_POLICY_"+string.upper(xsm_module_name)) +xsconstants.XS_POLICY_USE = eval("xsconstants.XS_POLICY_" + + string.upper(xsm_module_name)) xsm_module_path = "xen.util.xsm." + xsm_module_name + "." + xsm_module_name -xsm_module = __import__(xsm_module_path, globals(), locals(), ['*'], -1) +xsm_module = __import__(xsm_module_path, globals(), locals(), ['*']) xsm_init(xsm_module) -- 2.30.2